package com.ag.work.dao;

import java.util.List;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import com.ag.dao.TbProposeRecordDAO;


public class ProposeRecordDAO extends TbProposeRecordDAO {
	private static final Log log = LogFactory.getLog(ProposeRecordDAO.class);

	public List findRecord(String UId) {
		log.info("打印出：UId----" + UId);
		log.debug("getting TbProposeRecord by id: " + UId);
		try {
			String hql = "from TbProposeRecord ps join fetch ps.tbPropose where ps.id.UId = ?";
			List list = getHibernateTemplate().find(hql, UId);
			log.info("-------" + list);
			log.info("list----" + list.get(0));
			return list;
		} catch (RuntimeException re) {
			log.error("get failed", re);
			throw re;
		}

	}
}
